package com.greatwqs.wmall.message.consumer.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * http://localhost:18098/swagger-ui/index.html
 *
 * @author wang-qingsong
 */
@Configuration
public class SwaggerConfig {

    @Bean
    public OpenAPI swaggerOpenApi() {
        return new OpenAPI().info(new Info()
                .title("接口文档")
                .description("接口文档")
                .version("1.0.0"));
    }
}
